pp108 : XMLUtil (Objects)

XMLUtil (Objects)

The XMLUtil control can be used to manage XML documents. You can use this control to perform various methods on the XML documents available on an XForm. For example, you can use this control to make the format look pretty or customize the display.

It is a free-form control, which means you cannot bind it to a data model. You can add only one XMLUtil control to an XForm. At run time, the XMLUtil control is invisible and can be accessed on the XForm using its ID.

This control is derived from the AJAX Toolkit library - XMLUtil. For details about the control's behavior and functionality, see XMLUtil.

Properties, Events, and Methods of the Control

The properties, events, and methods associated with the XMLUtil control define its behavior. You can set them either through the control's property sheet or using the APIs. For details, see XMLUtil.

The following XForms-related methods are available for the control:

Table 1. List of Methods

Method

Description

addListener(sEventName, fpFunction)

This method registers a function to an event, such that the function gets called when the event is fired on the control.

removeListener(sEventName, fpFunction)

This method unregisters a function from an event, such that the function stops getting called when the event is fired on the control.